//
//  HJMakeAppointmentSelectViewCell.m
//  GAMCAfterSales
//
//  Created by 贺佳 on 2018/5/18.
//  Copyright © 2018年 glendale. All rights reserved.
//

#import "HJMakeAppointmentSelectViewCell.h"

@implementation HJMakeAppointmentSelectViewCell

UITablecellM(@"HJMakeAppointmentSelectViewCell")
-(void)setUI{
    for (int i=0; i<8; i++) {
        UILabel *titlelabel = [[UILabel alloc]init];
        titlelabel.backgroundColor = [UIColor clearColor];
        titlelabel.textColor = [UIColor grayColor];
        titlelabel.numberOfLines=0;
        titlelabel.font = [UIFont fontWithName:@"ArialMT" size:14];
        [titlelabel setTextAlignment:NSTextAlignmentCenter];
        [self.contentView addSubview:titlelabel];
        titlelabel.userInteractionEnabled=YES;
    }
}
-(void)setNotConmmingPadModel:(HJNotConmmingPadModel *)notConmmingPadModel
{
    _notConmmingPadModel=notConmmingPadModel;
    int i =0;
        for (UILabel*label in self.contentView.subviews) {
            switch (i) {
                case 0:
    
                    break;
                case 1:
                    label.text=notConmmingPadModel.BOOKING_ORDER_NO;
                    break;
                case 2:
                    label.text=notConmmingPadModel.LICENSE;
                    break;
                case 3:
                    label.text=notConmmingPadModel.VIN;
                    break;
                case 4:
                    label.text=notConmmingPadModel.CONTACTOR_NAME;
                    break;
                case 5:
                    label.text=notConmmingPadModel.CONTACTOR_MOBILE;
                    break;
                case 6:
                    label.text=notConmmingPadModel.BOOKING_COME_TIME;
    
                    break;
                case 7:
                    label.text=notConmmingPadModel.SERVICE_ADVISOR;
                    break;
    
                default:
                    break;
            }
            i++;
        }
}


-(void)layoutSubviews
{
    [super layoutSubviews];
    CGFloat w=self.contentView.mj_w/self.contentView.subviews.count;
    int i=0;
    for (UIView*subView in self.contentView.subviews) {
        subView.frame=CGRectMake(i*w, 0, w, self.contentView.mj_h);
        i++;
    }
}


@end
